package com.springinaction.chapter01.knight;

public class KnightOfTheRoundTable implements Knight {
	private String name;
	private Quest quest;
	
	public KnightOfTheRoundTable(String name) {
		this.name = name;
	}
	
	public HolyGrail embarkOnQuest() throws GrailNotFoundException, QuestFailedException {
		return (HolyGrail) quest.embark();
	}
	
	public void setQuest(Quest quest) {
		this.quest = quest;
	}
}
